/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package minesweeper.gameaction;

import java.util.EventObject;
import minesweeper.components.Sector;

/**
 *
 * @author Cj
 */
public class GameActionEvent extends EventObject{
    
    protected GameActionType action;
    protected long timeStamp;
    protected Sector orginSector;
    
    public GameActionEvent(Sector source, GameActionType action){
        super(source);
        
        this.action = action;
        this.timeStamp = System.currentTimeMillis();
        
        this.orginSector = source;
    }
    
    public Sector getOrginSector(){
        return this.orginSector;
    }
    
    public GameActionType getActionType(){
        return this.action;
    }
    
    public long getTimeStamp(){
        return this.timeStamp;
    }
    
}
